<?php
class BookCourseEvaluationServer {
	public function evaluation($data){
		$evaluationDao = HttpDaoManager::getBookCourseEvaluationDao();
		$evaluationData =  $evaluationDao->searchList(array('book_course_id'=>$data['book_course_id']));
		if (empty($evaluationData)){
			$data['time'] = time();
			$evaluationDao->add($data);
			HttpServerManager::getTeacherLogServer()->evaluation($data, '系统');
		}
	}
}

?>